package com.zhangxin.designmode.designpattern.singleten;

/**
 * 饿汉式单例
 *
 * @author zhangxin
 * @date 2022/4/26
 */
public class Singleton1Demo {

    private static final Singleton1Demo instance = new Singleton1Demo();

    private Singleton1Demo() {

    }


    public static Singleton1Demo getInstance() {
        return instance;
    }
}
